class TM_rule(object):
  TM_first_state = ""
  TM_symbol1 = ""
  TM_symbol2 = 0
  TM_header_direction = ""
  TM_next_state = ""

  def __init__(self,first,s1,s2,header,next):
    self.TM_first_state = first
    self.TM_symbol1 = s1
    self.TM_symbol2 = s2
    self.TM_header_direction = header
    self.TM_next_state = next

  def __print__(self):
    print "%s->%s|%s%s->%s" % (self.TM_first_state, self.TM_symbol1, self.TM_symbol2, self.TM_header_direction, self.TM_next_state)

